#include "dialog_codescanstart.h"
#include "ui_dialog_codescanstart.h"

Dialog_codeScanStart::Dialog_codeScanStart(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Dialog_codeScanStart)
{
    ui->setupUi(this);
}

Dialog_codeScanStart::~Dialog_codeScanStart()
{
    delete ui;
}

void Dialog_codeScanStart::on_btn_enter_clicked()
{
    QString productCode = ui->lineEdit_Code->text().trimmed();

    if(!productCode.isEmpty())
    {
        emit sendProductCode(productCode);
        this->accept();
    }
}

void Dialog_codeScanStart::on_btn_close_clicked()
{
    this->close();
}
